//
//  FlutterBaichuanPlugin+handler.m
//  flutter_baichuan
//
//  Created by xgz on 2020/11/23.
//

#import "BaichuanPlugin+handler.h"

#import "AlibcUtil.h"

@implementation BaichuanPlugin (handler)
-(void)debug:(FlutterResult)result{
    result(@"succ");
}
- (void)asyncInit:(FlutterMethodCall*)call result:(FlutterResult)result{
    [AlibcUtil.shared initAlibc:result];
}
// 设置三方媒体应用版本号
- (void)setIsvVersion:(FlutterMethodCall*)call result:(FlutterResult)result{
    
}
// 打开登录
- (void)showLogin:(FlutterMethodCall*)call result:(FlutterResult)result{
    [AlibcUtil.shared showLogin:result];
}

- (void)logout:(FlutterMethodCall*)call result:(FlutterResult)result{
    
}

- (void)isLogin:(FlutterMethodCall*)call result:(FlutterResult)result{
    [AlibcUtil.shared isLogin:result];
}

- (void)getUserInfo:(FlutterMethodCall*)call result:(FlutterResult)result{
    
}

- (void)openByCode:(FlutterMethodCall*)call result:(FlutterResult)result{
    [AlibcUtil.shared openTradePageByCode:call result:result];
    
}

- (void)openByUrl:(FlutterMethodCall*)call result:(FlutterResult)result{
    
    [AlibcUtil.shared openTradePageByUrl:call result:result];
}

- (void)registerNavigateUrl:(FlutterMethodCall*)call result:(FlutterResult)result{
    
}

- (void)registerImage:(FlutterMethodCall*)call result:(FlutterResult)result{
    
}

@end
